package com.define.commons.demo.tables2md;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @Author xiewenlong
 * @Date 2018/11/30 10:11
 */
@Data
@AllArgsConstructor
public class Table {
    // 数据库表名
    private String tableName;
    // 服务端model名
    private String objectName;
    // 数据库表的建表语句
    private String comment;
    // 表包含的字段
    private List<Column> columns;

    public Table(String tableName, String objectName) {
        this.tableName = tableName;
        this.objectName = objectName;
    }
}
